<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/demo02.js" >
        
    </script>
</head>
<body>
    <form action="" name="myForm" id="myForm">
    <input type="text" name="username" id="username">
    <input type="button" value="点击获取文本框的值" onclick="getTxy()">
    </form>
    <input type="submit" name="submit" value="显示hello" onclick="hello()">
    
</body>
</html>